package com.qall.onlie_code.process.entity;

import java.nio.charset.StandardCharsets;
import java.util.Base64;

public class CodeEntity {
    private String baseCode;
    private String code;

    public String getBaseCode() {
        return baseCode;
    }

    public void setBaseCode(String baseCode) {
        this.baseCode = baseCode;
    }

    public String getCode() {
        if (baseCode == null) {
            return null;
        }

        code=new String(Base64.getDecoder().decode(baseCode.getBytes(StandardCharsets.UTF_8)),StandardCharsets.UTF_8);
        return code;
    }



}
